liststore: Fix gtk_list_store_iter_is_valid()
authorBenjamin Otte <otte@redhat.com>
Fri, 6 Mar 2020 04:03:45 +0000 (05:03 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 6 Mar 2020 04:44:11 +0000 (05:44 +0100)
commite37729756de14b4681a18f219fc8f383bfbd8a05
tree78109163d662c8e4b0ea5610a715b00ef6d84283
parent3b8d9dbd281a175dca74e9713d78dfd1742f2378
liststore: Fix gtk_list_store_iter_is_valid()

The iter may be invalid, so we may not read from it.

testsuite/gtk/treemodel tests this and valgrind is shouting about it,
but it never crashed until I just ran it...

This bug is from 2004 and the test is from 2007. I guess invalid memory
accesses don't get caught by CI much.
gtk/gtkliststore.c